package com.tssup.fesco.common.queue;

/**
 * Created by haomin on 2017/3/29.
 */
public interface IQueue {
    boolean ifExist(String name);

    boolean ifEmpty(String name);

    boolean sendMessage(String name, QueueMessage message) throws QueueException;

    QueueMessage receive(String name) throws QueueException;
}
